package client;

import java.io.IOException;
import java.net.ServerSocket;


import server.FTP_Server;

public class Client
{
	public static final int 
			DEFAULT_SERVER_PORT = 8264;
	
	private static GuiClient client;
	private static FTP_Server server;
	
	public Client
			( int serverPort )
	{
		client = new GuiClient( serverPort );
		( new Thread( client ) ).start();
		new FTP_Server( serverPort );
	}
	
	public static void main( String args[] )
	{
		int	serverPort = DEFAULT_SERVER_PORT;

		if( args.length < 1 )
		{
			System.out.println
					( " -= NOTE: No server port specified, using the " +
					  "default port of " +
					  DEFAULT_SERVER_PORT +
					  "." );
		}
		else
			serverPort = Integer.parseInt( args[ 0 ] );

		new Client( serverPort );
	}
}
